package com.guigu.mapper;

import com.guigu.pojo.TRole;

import java.util.List;

/**
 * 角色表
 */
public interface TRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TRole record);

    int insertSelective(TRole record);

    TRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TRole record);

    int updateByPrimaryKey(TRole record);

    //查询登录用户拥有的角色
    List<TRole> selecroleByuserid(int userid);
}